package cn.tedu.lucky.draw.server.job.processor;

import cn.tedu.lucky.draw.server.protocol.po.Activity;
import org.springframework.batch.item.ItemProcessor;

public class ActivityItemProcessor implements ItemProcessor<Activity, Activity> {
    @Override
    public Activity process(Activity activity) throws Exception {
        //调整活动状态,拿到的数据就是1-已开始
        //0-待审核,1-已开始,2-已停用,3-已结束
        activity.setStatus(3);
        return null;
    }
}
